* Replication code for Figures 1 and 2 of "A Computational Model for Identifying Delegating and Constraining Provisions in European Union Laws"
* Fabio Franchino, Marta Migliorati, Giovanni Pagano and Valerio Vignoli
* European Union Politics


version 18
clear all

***** Comparison with Manually Annotated Datasets
* Upload dataset
use dataset.dta

* Merge with manually coded datasets
merge 1:1 celex using manual_coded_MF.dta, nogen
* Note: 26 manually coded acts are not in the CEPS dataset
* Among these: 31958R0003 (Franchino dataset) is only available in French, 32014L0087 (Migliorati dataset) is a Euraton directive

**** Analysis
* Correlation between hand-coded (HC) and computational discretion ratios (member states MS and national competent authorithies NCA)
pwcorr HCdiscr_nat_r discr_nat_r, star(.01) 

* Correlation between hand-coded (HC) and computational discretion ratios (European Commission)
pwcorr HCdiscr_com_r discr_com_r, star(.01) 

